package com.haibara.aioj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haibara.aioj.model.entity.Question;
import org.apache.ibatis.annotations.Select;

/**
* @author AiChan
* @description 针对表【question(题目)】的数据库操作Mapper
* @createDate 2023-12-20 13:17:24
* @Entity generator.domain.Question
*/
public interface QuestionMapper extends BaseMapper<Question> {

    @Select("select id from question order by id desc limit 0,1")
    int getMaxQuestionId();
}




